From 906c10055d2388150461cac36800cbeb036c5fa2 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Wed, 8 Feb 2012 12:16:32 +0000 Subject: [PATCH] align variables / enhance comment --- includes/filerepo/FileRepo.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/includes/filerepo/FileRepo.php b/includes/filerepo/FileRepo.php index 828bc921d0..203a956305 100644 --- a/includes/filerepo/FileRepo.php +++ b/includes/filerepo/FileRepo.php @@ -768,7 +768,9 @@ class FileRepo { /** * Pick a random name in the temp zone and store a file to it. - * Returns a FileRepoStatus object with the URL in the value. + * Returns a FileRepoStatus object with the file Virtual URL in the value, + * file can later be disposed using FileRepo::freeTemp(). + * * * @param $originalName String: the base name of the file as specified * by the user. The file extension will be maintained. @@ -831,7 +833,7 @@ class FileRepo { /** * Remove a temporary file or mark it for garbage collection * - * @param $virtualUrl String: the virtual URL returned by storeTemp + * @param $virtualUrl String: the virtual URL returned by FileRepo::storeTemp() * @return Boolean: true on success, false on failure */ public function freeTemp( $virtualUrl ) { @@ -840,8 +842,8 @@ class FileRepo { wfDebug( __METHOD__.": Invalid temp virtual URL\n" ); return false; } - $path = $this->resolveVirtualUrl( $virtualUrl ); - $op = array( 'op' => 'delete', 'src' => $path ); + $path = $this->resolveVirtualUrl( $virtualUrl ); + $op = array( 'op' => 'delete', 'src' => $path ); $status = $this->backend->doOperation( $op ); return $status->isOK(); } -- 2.20.1